upgrade now error rtapi_app_main(hal_pru_generic): -1 Operation not permitted

333 views
Skip to first unread message

g_b...@comcast.net

unread,
May 26, 2015, 11:32:44 AM5/26/15
to machi...@googlegroups.com
since update upgrade i can't run linuxcnc keep getting this error msg

lineardelta.hal:31: insmod failed, returned -1:
rtapi_app_main(hal_pru_generic): -1 Operation not permitted

any fixes or suggestions

thanks gary

Charles Steinkuehler

unread,
May 26, 2015, 11:43:07 AM5/26/15
to machi...@googlegroups.com
It's probably the same HAL name length issue from the "Probotix PBX
cape on BBB can't start linuxCNC" thread.

Can you try the fix from:

https://groups.google.com/d/msg/machinekit/E_WECO_7tb8/HolMmchZKDcJ

--
Charles Steinkuehler
cha...@steinkuehler.net

Charles Steinkuehler

unread,
May 26, 2015, 12:01:32 PM5/26/15
to machi...@googlegroups.com
I've pushed an update for the example BeagleBone configurations, but
for anyone who has this issue, the simple sed 1-liner fix for your HAL
file is (quoted to avoid line wrap):

> sed -i '/\[PRUCONF\](DRIVER) /s/$/ halname=hpg/;s/\[PRUCONF\](DRIVER)\./hpg./;/addf hpg/s/ servo/ servo/' YourConfig.hal

--
Charles Steinkuehler
cha...@steinkuehler.net

Gorf

unread,
May 26, 2015, 12:19:07 PM5/26/15
to machi...@googlegroups.com
Thanks Charles

But i already made those changes to hpg and halname=hpg awhile ago

the only lines that refer to hal_pru_generic  are the first couple lines

thanks gary

Charles Steinkuehler

unread,
May 26, 2015, 12:21:19 PM5/26/15
to machi...@googlegroups.com
Well, then what's in your /var/log/linuxcnc.log file?
--
Charles Steinkuehler
cha...@steinkuehler.net

g_b...@comcast.net

unread,
May 26, 2015, 12:46:44 PM5/26/15
to machi...@googlegroups.com
I did a clean install of the machinekit i think dated 05/17/2015 to test received the same error msg.
then did an update upgrade and now can load linuxcnc at all am getting this error now

 MACHINEKIT - 0.1
 Error in startup script: couldn't load file "/usr/lib/tcltk/linuxcnc/bxcnc.so": librtapi_math.so: cannot open shared object file: No such fictory
     while executing
 "load [file join [file dirname [info script]] linuxcnc[info sharedlibe"
     (file "/usr/lib/tcltk/linuxcnc/bin/../linuxcnc.tcl" line 60)
     invoked from within
 "source [file join [file dirname [info script]] .. linuxcnc.tcl]"
     (file "/usr/lib/tcltk/linuxcnc/bin/pickconfig.tcl" line 29)

also attached a copy of the error files

hope this helps


thanks gary

On Tuesday, May 26, 2015 at 11:32:44 AM UTC-4, g_b...@comcast.net wrote:
linuxcnc_debug.txt
linuxcnc_print.txt
linuxcnc.log

Michael Haberler

unread,
May 26, 2015, 12:51:23 PM5/26/15
to g_b...@comcast.net, machi...@googlegroups.com

> Am 26.05.2015 um 18:46 schrieb g_b...@comcast.net:
>
> I did a clean install of the machinekit i think dated 05/17/2015 to test received the same error msg.
> then did an update upgrade and now can load linuxcnc at all am getting this error now
>
> MACHINEKIT - 0.1
> Error in startup script: couldn't load file "/usr/lib/tcltk/linuxcnc/bxcnc.so": librtapi_math.so: cannot open shared object file: No such fictory
> while executing
> "load [file join [file dirname [info script]] linuxcnc[info sharedlibe"
> (file "/usr/lib/tcltk/linuxcnc/bin/../linuxcnc.tcl" line 60)
> invoked from within
> "source [file join [file dirname [info script]] .. linuxcnc.tcl]"
> (file "/usr/lib/tcltk/linuxcnc/bin/pickconfig.tcl" line 29)
>
> also attached a copy of the error files
>
> hope this helps

yes, reading the log definitely helps:

"Apr 27 00:08:48 bbb msgd:0: hal_lib:3164:rt hal_pin_newfv:28 HAL error: length 49 invalid for name starting 'hal_pru_generic.stepgen.00.dbg_pos_minus_'

how more detailed can the error message possibly be than "length invalid" ? I do not know what else we possibly could do.

It is all there in front of you - but you need to look at it.

>
> thanks gary
>
> On Tuesday, May 26, 2015 at 11:32:44 AM UTC-4, g_b...@comcast.net wrote:
> since update upgrade i can't run linuxcnc keep getting this error msg
>
> lineardelta.hal:31: insmod failed, returned -1:
> rtapi_app_main(hal_pru_generic): -1 Operation not permitted
>
> any fixes or suggestions
>
> thanks gary
>
> --
> website: http://www.machinekit.io blog: http://blog.machinekit.io github: https://github.com/machinekit
> ---
> You received this message because you are subscribed to the Google Groups "Machinekit" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to machinekit+...@googlegroups.com.
> Visit this group at http://groups.google.com/group/machinekit.
> For more options, visit https://groups.google.com/d/optout.
> <linuxcnc_debug.txt><linuxcnc_print.txt><linuxcnc.log>

Gorf

unread,
May 26, 2015, 2:44:54 PM5/26/15
to machi...@googlegroups.com
i did see it but i am not a programer and i am not sure what to change seeing i already went thought this before
the name to long and changed all the hal_pru_generic to hpg its been OK till now..


thanks gary

On Tuesday, May 26, 2015 at 11:32:44 AM UTC-4, g_b...@comcast.net wrote:

Gorf

unread,
May 27, 2015, 5:41:32 PM5/27/15
to machi...@googlegroups.com
I started over and did a fresh install of MK dated 2015/05/25

I tried to run linuxcnc for first time loaded and picked my system beaglebone bebopr++ lineardelta  then aborted error on the first run the ini file was the default no modes made to it..
still think its the long file name problem, but not sure I made all the changes to the hal file that Charles instructed me to do when I received that error a while back and all has been fine till recent updates
put 4 error files on pastebin not sure yet how you want me to link you to them or do you want a zip of then. any way here's

thanks gary


On Tuesday, May 26, 2015 at 11:32:44 AM UTC-4, g_b...@comcast.net wrote:

Charles Steinkuehler

unread,
May 27, 2015, 5:52:06 PM5/27/15
to machi...@googlegroups.com
On 5/27/2015 4:41 PM, Gorf wrote:
> I started over and did a fresh install of MK dated 2015/05/25
>
> I tried to run linuxcnc for first time loaded and picked my system
> beaglebone bebopr++ lineardelta then aborted error on the first run the
> ini file was the default no modes made to it..
> still think its the long file name problem, but not sure I made all the
> changes to the hal file that Charles instructed me to do when I received
> that error a while back and all has been fine till recent updates
> put 4 error files on pastebin not sure yet how you want me to link you to
> them or do you want a zip of then. any way here's
> is a link http://pastebin.com/u/gorf24

That's still the HAL name is too long error:

hal_pin_newfv:28 HAL error: length 49 invalid for name starting
'hal_pru_generic.stepgen.00.dbg_pos_minus_'

I recently checked in fixes for this which should have made it to the
packages by now, but you'll need to manually update:

sudo apt-get update
sudo apt-get upgrade

...since it will be a while before this fix makes it to the pre-built
images. To check to see if you're using the new version, look for a
halname= parameter on the loadrt line for the PRU driver in your HAL file.

--
Charles Steinkuehler
cha...@steinkuehler.net

g_b...@comcast.net

unread,
May 28, 2015, 11:51:04 AM5/28/15
to machi...@googlegroups.com
i tried the manual update after updating i cant load linuxcnc aborts right away with this error msg

MACHINEKIT - 0.1
Error in startup script: couldn't load file "/usr/lib/tcltk/linuxcnc/bin/../lin$
    while executing
"load [file join [file dirname [info script]] linuxcnc[info sharedlibextension]$

    (file "/usr/lib/tcltk/linuxcnc/bin/../linuxcnc.tcl" line 60)
    invoked from within
"source [file join [file dirname [info script]] .. linuxcnc.tcl]"
    (file "/usr/lib/tcltk/linuxcnc/bin/pickconfig.tcl" line 29)

seems the upgrade is messing other stuff up..


thanks gary

On Tuesday, May 26, 2015 at 11:32:44 AM UTC-4, g_b...@comcast.net wrote:

schoo...@btinternet.com

unread,
May 28, 2015, 12:37:07 PM5/28/15
to machi...@googlegroups.com
Hi

If your last error is anything to go by, the report you get has no
relationship to the actual cause, it
is just what falls over next after the error

Run echo "" > /var/log/linuxcnc.log to zero it

start machinekit afresh to load the same config
(we need to know what the config is too and if it is not a stock sample
config, attach it)

then attach your linuxcnc.log to a post

Previously you had errors which appeared to evolve around tcl, but were
in fact still because you had a
huge long pin name originating from hal_pru_generic being loaded under
that name instead of hpg

viz *"Apr 27 00:08:48 bbb msgd:0: hal_lib:3164:rt hal_pin_newfv:28 HAL
error: length 49 invalid for name starting
'hal_pru_generic.stepgen.00.dbg_pos_minus_'*

regards
> --
> website: http://www.machinekit.io blog: http://blog.machinekit.io
> github: https://github.com/machinekit
> ---
> You received this message because you are subscribed to the Google
> Groups "Machinekit" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to machinekit+...@googlegroups.com
> <mailto:machinekit+...@googlegroups.com>.

Gorf

unread,
May 28, 2015, 6:10:44 PM5/28/15
to machi...@googlegroups.com
the ini file that i get from a fresh install and an update, upgrade doesn't have and reference to the halname= or hpg
I have made the changes to the hal file for the hpg and halname=hpg

but after the update upgrade is when i can't boot lenuxcnc at all

attached a fresh copy of the log file and my ini and hal


thanks gary

On Tuesday, May 26, 2015 at 11:32:44 AM UTC-4, g_b...@comcast.net wrote:
linuxcnc.log
lineardelta.ini
lineardelta.hal

Charles Steinkuehler

unread,
May 28, 2015, 6:42:49 PM5/28/15
to machi...@googlegroups.com
On 5/28/2015 5:10 PM, Gorf wrote:
> the ini file that i get from a fresh install and an update, upgrade doesn't
> have and reference to the halname= or hpg
> I have made the changes to the hal file for the hpg and halname=hpg
>
> but after the update upgrade is when i can't boot lenuxcnc at all
>
> attached a fresh copy of the log file and my ini and hal

You replaced one too many hal_pru_generic instances with hpg. The one
on the loadrt line needs to *STAY* hal_pru_generic (or something that
expands to that, like the "[PRUCONF](DRIVER)" in most of the example
configs) since that's _still_ the name of the actual driver:

Apr 20 05:41:23 beaglebone msgd:0: rtapi_app:3861:user hpg: dlopen:
hpg.so: cannot open shared object file: No such file or directory

--
Charles Steinkuehler
cha...@steinkuehler.net

Gorf

unread,
May 29, 2015, 12:39:28 PM5/29/15
to machi...@googlegroups.com
your correct sorry must have missed that hal_gerenic_ i fix it  and reran lenuxcnc also cleared out the linuxcnc log file

this is the error i received when trying to load linuxcnc don't think it loaded very far, it also never written anything to the linuxcnc.log file that was blank empty

this is the terminal error echo message


thanks gary

On Tuesday, May 26, 2015 at 11:32:44 AM UTC-4, g_b...@comcast.net wrote:
termerror.txt
Reply all
Reply to author
Forward
0 new messages